package org.longteng.mobileluck.orc.vo;

/**
 * ORC接口调用统计，以防超过次数计费
 * <br>如百度智能云是各通用API月免费1000次
 * <br>如移动云是各通用API月免费500次
 */
public class OrcApiCount {
    /**
     * api类型名，如：baidu
     */
    private String typeName;
    private long baseCount = 0;     // 通用文字识别计数
    private long generalCount = 0;  // 通用文字识别(含位置信息)计数
    private String preSumMonth;     // 上次计数月yyyy-MM
    private String currSumMonth;     // 当前计数月yyyy-MM

    public void addBaseCount() {
        baseCount++;
    }
    public void addGeneralCount() {
        generalCount++;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public long getBaseCount() {
        return baseCount;
    }

    public void setBaseCount(long baseCount) {
        this.baseCount = baseCount;
    }

    public long getGeneralCount() {
        return generalCount;
    }

    public void setGeneralCount(long generalCount) {
        this.generalCount = generalCount;
    }

    public String getPreSumMonth() {
        return preSumMonth;
    }

    public void setPreSumMonth(String preSumMonth) {
        this.preSumMonth = preSumMonth;
    }

    public String getCurrSumMonth() {
        return currSumMonth;
    }

    public void setCurrSumMonth(String currSumMonth) {
        this.currSumMonth = currSumMonth;
    }
}
